#class { 'users':
#  manage_user => {
#    user1 => {
#      ensure     => 'present',
#      comment    => undef,
#      expiry     => 'absent',
#      uid        => undef,
#      gid        => undef,
#      groups     => undef,
#      home       => undef,
#      managehome => true,
#      password   => undef,
#      shell      => undef,
#      system     => false,
#    },
#    user2 => {
#      password => '111111'
#    }
#  }
#}
  
class users::user (
  $users = $users::users,
) {

  validate_hash($users)
  create_resources(users::resources::user, $users)

}